<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class Orders extends Model
{
    protected $table='orders';
    protected $guarded=[];

    /**
     * 用户
     */
    public function user(){
        return $this->belongsTo('App\Model\User');
    }
    public function ordersInfo(){
        return $this->hasMany('App\Model\OrdersInfo');
    }
}
